#ifndef TRACEEDITOR_H
#define TRACEEDITOR_H

#include <QPlainTextEdit>

class TraceEditor : public QPlainTextEdit
{
    Q_OBJECT
public:
    explicit TraceEditor(QWidget *parent = 0);

    void keyPressEvent(QKeyEvent *e);

    void findText(QTextDocument::FindFlags flags = 0);
    void toggleSpinFilter();
    void setEnablePasmFilter();
    void setEnableSpinFilter(bool enable);
    void setEnableCmmFilter(bool enable);
    void setEnableLmmFilter(bool enable);
    void appendPlainText(const QString &text);

private:
    bool    spinFilter;
    bool    gccCmmFilter;
    bool    gccLmmFilter;
    QString findString;
    QTextDocument::FindFlags findType;

signals:

public slots:

};

#endif // TRACEEDITOR_H
